package org.pool.factory;

import org.pool.DefaultPool;
import org.pool.IPool;

/**
 * Created with IntelliJ IDEA.
 * Description:单例模式,连接池工厂
 * User: zpr
 * Date: 2018-04-17
 * Time: 14:09
 */
public class PoolFactory {
    public static class CreatePool{
        public static IPool pool = new DefaultPool();
    }

    public static IPool getInstance(){
        return CreatePool.pool;
    }
}
